# coding:utf-8

from flask_peewee.db import Database
from playhouse.db_url import connect

from app import flask_app


def init_tables():
    from model.model_item import Item
    Item.create_table()


db = Database(flask_app, connect(flask_app.config.get('DATABASE_URL')))

init_tables()
